{extend name='layout/base'}
{block name='title'}{__block__}日志管理{/block}
{block name='content'}
<div class="row left">
    <div class="col-md-2"></div>
    <div class="col-md-8">
        <div class="col-md-4">
            {include file='layout/menu'}             
        </div>      
        <div class="col-md-8">

            <div class="page-header">
                <h1>日志管理</h1>
            </div>
            <div class="table-responsive">
                <table class="table">
                    <thead>
                        <tr>
                            <th>用户ID</th>
                            <th>电话号码</th>
                            <th>登录时间</th>
                            <th>登录状态</th>
                        </tr>
                    </thead>
                    {foreach $rows as $row}
                    <tbody>
                        <tr>
                            <th scope="row">{$row.users_id}</th>
                            <td>{$row.phone}</td>
                            <td>{$row.create_time}</td>
                            <td><?php echo config('set.login_status')[$row->state];?></td>
                        </tr>
                    </tbody>
                    {/foreach}
                </table>
            </div>

            <!--分页-->
            <div class="row">   
                <div class="col-md-6 col-md-offset-3">  
                    {$rows->render()}
                </div>  
            </div>
    
        </div>
    </div>
    <div class="col-md-2"></div>
</div>

{/block}
